//系统管理
import Layout from '@/views/layout/Layout'
import Three from '@/views/layout/Three'

const system = {
  path: '/system',
  name: 'system',
  component: Layout,
  redirect: '/system/baseManage/express',
  key: 'system',
  meta: {
    title: '系统'
  },
  children: [{
    path: 'commission',
    name: 'commission',
    key: 'commission',
    meta: {
    title: '分佣收益设置'
    },
    component: Three,
    children: [{
    path: 'commissionEarn',
    name: 'commissionEarn',
    key: 'commissionEarn',
    meta: {
      title: '分佣收益设置'
    },
    component: () => import('@/views/system/commission/list'),
    }]
  },{
    path: 'baseManage',
    name: 'baseManage',
    key: 'baseManage',
    component: Three,
    redirect: '/system/baseManage/express',
    meta: {
      title: '基础设置'
    },
    children: [{
      path: 'express',
      name: 'express',
      key: 'express',
      component: () => import('@/views/system/baseOption/expressManage/list'),
      meta: {
        title: '物流管理'
      }
    }, {
      path: 'systemStatement',
      name: 'systemStatement',
      key: 'systemStatement',
      component: () => import('@/views/system/baseOption/systemStatement/list'),
      meta: {
        title: '协议规则'
      }
    }, {
      path: 'statementEdit',
      name: 'statementEdit',
      key: 'statementEdit',
      hidden: true,
      component: () => import('@/views/system/baseOption/systemStatement/edit'),
      meta: {
        title: '协议规则编辑'
      }
    }, {
      path: 'channelManage',
      name: 'channelManage',
      key: 'channelManage',
      component: () => import('@/views/system/baseOption/channelManage/list'),
      meta: {
        title: '渠道管理'
      }
    }]
  },  {
    path: 'courseManage',
    name: 'courseManage',
    key: 'courseManage',
    component: Three,
    meta: {
      title: '课程管理'
    },
    children: [
      {
        path: 'courseType',
        name: 'courseType',
        component: () => import('@/views/system/courseManage/type/list'),
        key: 'courseType',
        meta: {
          title: '课程类型'
        }
      }, {
        path: 'courseTag',
        name: 'courseTag',
        component: () => import('@/views/system/courseManage/tags/list'),
        key: 'courseTag',
        meta: {
          title: '课程标签'
        }
      }]
  }, {
    path: 'goodsAttrManage',
    name: 'goodsAttrManage',
    key: 'goodsAttrManage',
    component: Three,
    meta: {
      title: '商品管理'
    },
    children: [
      {
        path: 'goodsCate',
        name: 'goodsCate',
        component: () => import('@/views/system/goodsManage/goodsCate/list'),
        key: 'goodsCate',
        meta: {
          title: '商品类目'
        }
      }, {
        path: 'goodsAttr',
        name: 'goodsAttr',
        component: () => import('@/views/system/goodsManage/goodsAttr/list'),
        key: 'goodsAttr',
        meta: {
          title: '商品属性'
        }
      }]
  }, {
    path: 'plateManage',
    name: 'plateManage',
    key: 'plateManage',
    component: Three,
    redirect: '/system/plateManage/mallPlate',
    meta: {
      title: '板块管理'
    },
    children: [{
      path: 'mallPlate',
      name: 'mallPlate',
      component: () => import('@/views/system/plateManage/mallPlate/list'),
      key: 'mallPlate',
      meta: {
        title: '商城板块'
      }
    }, {
      path: 'mallPlateAdd',
      name: 'mallPlateAdd',
      hidden: true,
      component: () => import('@/views/system/plateManage/mallPlate/add'),
      key: 'mallPlateAdd',
      meta: {
        title: '板块添加'
      }
    }, {
      path: 'mallPlateEdit',
      name: 'mallPlateEdit',
      hidden: true,
      component: () => import('@/views/system/plateManage/mallPlate/add'),
      key: 'mallPlateEdit',
      meta: {
        title: '板块编辑'
      }
    }, {
      path: 'plateGoodsManage',
      name: 'plateGoodsManage',
      component: () => import('@/views/system/plateManage/mallPlate/plateGoodsList'),
      key: 'plateGoodsManage',
      hidden: true,
      meta: {
        title: '板块商品管理'
      }
    } ,{
      path: 'weappMallPlate',
      name: 'weappMallPlate',
      component: () => import('@/views/system/plateManage/mallPlate/list'),
      key: 'weappMallPlate',
      meta: {
        title: '小程序板块'
      }
    },{
      path: 'pointsMallPlate',
      name: 'pointsMallPlate',
      component: () => import('@/views/system/plateManage/mallPlate/list'),
      key: 'pointsMallPlate',
      meta: {
        title: '积分商城板块'
      }
    }, {
      path: 'musicCate',
      name: 'musicCate',
      component: () => import('@/views/system/plateManage/musicCate/list'),
      key: 'musicCate',
      meta: {
        title: '音乐板块'
      }
    }, {
      path: 'musicCateAdd',
      name: 'musicCateAdd',
      key: 'musicCateAdd',
      hidden: true,
      component: () => import('@/views/system/plateManage/musicCate/add'),
      meta: {
        title: '音乐分类添加'
      },
    },]
  }, {
    path: 'brandManage',
    name: 'platBrandManage',
    key: 'brandManage',
    component: Three,
    redirect: '/system/brandManage/brandManageList',
    meta: {
      title: '品牌管理'
    },
    alwaysShow: true,
    children: [{
      path: 'brandManageList',
      name: 'brandManageList',
      key: 'brandManageList',
      component: () => import('@/views/system/brandManage/brandManage/list'),
      meta: {
        title: '品牌管理'
      },
    }]
  }, {
    path: 'supplierManage',
    name: 'supplierManage',
    key: 'supplierManage',
    component: Three,
    redirect: '/system/supplierManage/supplierManageList',
    meta: {
      title: '供应商管理'
    },
    alwaysShow: true,
    children: [{
      path: 'supplierManageList',
      name: 'supplierManageList',
      key: 'supplierManageList',
      component: () => import('@/views/system/supplierManage/supplierManage/list'),
      meta: {
        title: '供应商管理'
      },
    }]
  }, {
    path: 'offlineStoreManage',
    name: 'offlineStoreManage',
    key: 'offlineStoreManage',
    component: Three,
    redirect: '/system/brandManage/brandManageList',
    meta: {
      title: '线下门店管理'
    },
    alwaysShow: true,
    children: [{
      path: 'offlineStoreList',
      name: 'offlineStoreList',
      key: 'offlineStoreList',
      component: () => import('@/views/system/offlineStoreManage/offlineStore/list'),
      meta: {
        title: '线下门店管理'
      },
    },{
      path: 'offlineStoreEdit',
      name: 'offlineStoreEdit',
      key: 'offlineStoreEdit',
      hidden:true,
      component: () => import('@/views/system/offlineStoreManage/offlineStore/edit'),
      meta: {
        title: '线下门店编辑'
      },
    }]
  },]
}

export default system
